From: Florian Müllner Date: Fri, 19 Jan 2024 12:35:53 +0000 (+0100) Subject: panel: Remove unnecessary code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~127 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=10f7344336c0392dcb96987fefc880ad4a80638f;p=gnome-shell.git panel: Remove unnecessary code Since commit a4660293748, the activities button uses the standard `:checked` pseudo class in the overview instead of the custom `:overview`. As a side effect, the generic handling of the `CHECKED` Atk state in StWidget now covers the case, and we no longer need to manage the state explicitly. Part-of: --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 1041bac8d..7318e95f0 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -429,11 +429,9 @@ class ActivitiesButton extends PanelMenu.Button { Main.overview.connect('showing', () => { this.add_style_pseudo_class('checked'); - this.add_accessible_state(Atk.StateType.CHECKED); }); Main.overview.connect('hiding', () => { this.remove_style_pseudo_class('checked'); - this.remove_accessible_state(Atk.StateType.CHECKED); }); this._xdndTimeOut = 0;